# 1. 创建有数据的集合
# 注意：集合没有顺序，不支持下标操作
s1 = {10, 20, 30, 40, 50}
print(s1) # {40, 10, 50, 20, 30}

s2 = {10, 20, 30, 40, 50, 10}
print(s2) # {40, 10, 50, 20, 30}
# 集合有去重功能

s3 = set('abcdefg')
print(s3) # {'d', 'e', 'f', 'a', 'c', 'g', 'b'}

# 2. 创建空集合：set()
s4 = set()
print(s4) # set()